package cn.mesmile.thread.jvm;

import org.openjdk.jol.info.ClassLayout;

import java.util.Comparator;

/**
 * @author zb
 * @date 2021/4/7 10:57
 * @Description
 */
public class JolTest {

    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        // 逻辑处理器数量
        int i = runtime.availableProcessors();
        System.out.println("i = " + i);

        Object o = new Object();
        ClassLayout classLayout = ClassLayout.parseInstance(o);
        System.out.println(classLayout.toPrintable());
    }
}
